package com.huoyun.cargo.dao.evt;

import java.util.Date;

import com.huoyun.base.dao.evt.DaoBaseEvt;

/**
 * "车主"搜索货源时用到的"搜索条件"
 * @author ChengXin
 *
 */
public class SelectCargosForCarEvt extends DaoBaseEvt 
{
	/**
	 * 起始地
	 */
	private String startProvince;
	private String startCity;
	private String startTown;
	
	/**
	 * 到达地
	 */
	private String destinationProvince;
	private String destinationCity;
	private String destinationTown;

	/**
	 * 装货起始时间
	 */
	private Date loadStartTime;
	/**
	 * 装货截止时间
	 */
	private Date loadEndTime;
	/**
	 * 发货起始时间
	 */
	private Date leaveStartTime;
	/**
	 * 发货截止时间
	 */
	private Date leaveEndTime;
	/**
	 * 卸货起始时间
	 */
	private Date unloadStartTime;
	/**
	 * 卸货截止时间
	 */
	private Date unloadEndTime;
	/**
	 * 装货数量下限
	 */
	private String carryingNumUpper;
	/**
	 * 装货数量上限
	 */
	private String carryingNumLower;
	/**
	 * 货物类型
	 */
	private String cargoType;
	/**
	 * 包装类型
	 */
	private String packageType;
	/**
	 * 车辆类型
	 */
	private String carType;
	/**
	 * 最早应标截止时间
	 */
	private Date bidEndStartTime;
	/**
	 * 最迟应标截止时间
	 */
	private Date bidEndEndTime;
	/**
	 * 最早货物信息发布时间
	 */
	private Date cargoInfoCreateStartTime;
	/**
	 * 最迟货物信息发布时间
	 */
	private Date cargoInfoCreateEndTime;
	/**
	 * 货物状态
	 */
	private int cargoStatus;
	
	/**
	 * 拷贝service中的搜索数据到dao中的搜索数据
	 * @param searchCriteria
	 */
	public void copyData(com.huoyun.cargo.service.evt.SelectCargosForCarEvt searchCriteria)
	{
		this.startProvince = searchCriteria.getStartProvince();
		this.startCity = searchCriteria.getStartCity();
		this.startTown = searchCriteria.getStartTown();
		this.destinationProvince = searchCriteria.getDestinationProvince();
		this.destinationCity = searchCriteria.getDestinationCity();
		this.destinationTown = searchCriteria.getDestinationTown();
		this.loadStartTime = searchCriteria.getLoadStartTime();
		this.loadEndTime = searchCriteria.getLoadEndTime();
		this.leaveStartTime = searchCriteria.getLeaveStartTime();
		this.leaveEndTime = searchCriteria.getLeaveEndTime();
		this.unloadStartTime = searchCriteria.getUnloadStartTime();
		this.unloadEndTime = searchCriteria.getUnloadEndTime();
		this.carryingNumLower = searchCriteria.getCarryingNumLower();
		this.carryingNumUpper = searchCriteria.getCarryingNumUpper();
		this.cargoType = searchCriteria.getCargoType();
		this.packageType = searchCriteria.getPackageType();
		this.carType = searchCriteria.getCarType();
		this.bidEndStartTime = searchCriteria.getBidEndStartTime();
		this.bidEndEndTime = searchCriteria.getBidEndEndTime();
		this.cargoInfoCreateStartTime = searchCriteria.getCargoInfoCreateStartTime();
		this.cargoInfoCreateEndTime = searchCriteria.getCargoInfoCreateEndTime();
		this.cargoStatus = searchCriteria.getCargoStatus();
	}
	
	public String getStartProvince() {
		return startProvince;
	}
	public void setStartProvince(String startProvince) {
		this.startProvince = startProvince;
	}
	public String getStartCity() {
		return startCity;
	}
	public void setStartCity(String startCity) {
		this.startCity = startCity;
	}
	public String getStartTown() {
		return startTown;
	}
	public void setStartTown(String startTown) {
		this.startTown = startTown;
	}
	public String getDestinationProvince() {
		return destinationProvince;
	}
	public void setDestinationProvince(String destinationProvince) {
		this.destinationProvince = destinationProvince;
	}
	public String getDestinationCity() {
		return destinationCity;
	}
	public void setDestinationCity(String destinationCity) {
		this.destinationCity = destinationCity;
	}
	public String getDestinationTown() {
		return destinationTown;
	}
	public void setDestinationTown(String destinationTown) {
		this.destinationTown = destinationTown;
	}

	public Date getLoadStartTime() {
		return loadStartTime;
	}

	public void setLoadStartTime(Date loadStartTime) {
		this.loadStartTime = loadStartTime;
	}

	public Date getLoadEndTime() {
		return loadEndTime;
	}

	public void setLoadEndTime(Date loadEndTime) {
		this.loadEndTime = loadEndTime;
	}

	public Date getLeaveStartTime() {
		return leaveStartTime;
	}

	public void setLeaveStartTime(Date leaveStartTime) {
		this.leaveStartTime = leaveStartTime;
	}

	public Date getLeaveEndTime() {
		return leaveEndTime;
	}

	public void setLeaveEndTime(Date leaveEndTime) {
		this.leaveEndTime = leaveEndTime;
	}

	public Date getUnloadStartTime() {
		return unloadStartTime;
	}

	public void setUnloadStartTime(Date unloadStartTime) {
		this.unloadStartTime = unloadStartTime;
	}

	public Date getUnloadEndTime() {
		return unloadEndTime;
	}

	public void setUnloadEndTime(Date unloadEndTime) {
		this.unloadEndTime = unloadEndTime;
	}

	public String getCarryingNumUpper() {
		return carryingNumUpper;
	}

	public void setCarryingNumUpper(String carryingNumUpper) {
		this.carryingNumUpper = carryingNumUpper;
	}

	public String getCarryingNumLower() {
		return carryingNumLower;
	}

	public void setCarryingNumLower(String carryingNumLower) {
		this.carryingNumLower = carryingNumLower;
	}

	public String getCargoType() {
		return cargoType;
	}

	public void setCargoType(String cargoType) {
		this.cargoType = cargoType;
	}

	public String getPackageType() {
		return packageType;
	}

	public void setPackageType(String packageType) {
		this.packageType = packageType;
	}

	public String getCarType() {
		return carType;
	}

	public void setCarType(String carType) {
		this.carType = carType;
	}

	public Date getBidEndStartTime() {
		return bidEndStartTime;
	}

	public void setBidEndStartTime(Date bidEndStartTime) {
		this.bidEndStartTime = bidEndStartTime;
	}

	public Date getBidEndEndTime() {
		return bidEndEndTime;
	}

	public void setBidEndEndTime(Date bidEndEndTime) {
		this.bidEndEndTime = bidEndEndTime;
	}

	public Date getCargoInfoCreateStartTime() {
		return cargoInfoCreateStartTime;
	}

	public void setCargoInfoCreateStartTime(Date cargoInfoCreateStartTime) {
		this.cargoInfoCreateStartTime = cargoInfoCreateStartTime;
	}

	public Date getCargoInfoCreateEndTime() {
		return cargoInfoCreateEndTime;
	}

	public void setCargoInfoCreateEndTime(Date cargoInfoCreateEndTime) {
		this.cargoInfoCreateEndTime = cargoInfoCreateEndTime;
	}

	public int getCargoStatus() {
		return cargoStatus;
	}

	public void setCargoStatus(int cargoStatus) {
		this.cargoStatus = cargoStatus;
	}
}
